namespace PocketPals.Models
{
    /// <summary>
    /// 交易记录数据模型（简化版）
    /// </summary>
    public class Transaction
    {
        /// <summary>
        /// 交易ID - 唯一标识符
        /// </summary>
        public Guid Id { get; set; }

        /// <summary>
        /// 交易时间
        /// </summary>
        public DateTime TransactionTime { get; set; }

        /// <summary>
        /// 交易类型（收入/支出）
        /// </summary>
        public TransactionType Type { get; set; }

        /// <summary>
        /// 交易金额
        /// </summary>
        public decimal Amount { get; set; }

        /// <summary>
        /// 操作人
        /// </summary>
        public string? Operator { get; set; }
        
        /// <summary>
        /// 交易分类
        /// </summary>
        public string? Category { get; set; }

        /// <summary>
        /// 交易描述
        /// </summary>
        public string? Description { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedAt { get; set; }

        /// <summary>
        /// 最后更新时间
        /// </summary>
        public DateTime UpdatedAt { get; set; }
    }

    /// <summary>
    /// 交易类型枚举
    /// </summary>
    public enum TransactionType
    {
        Income,      // 收入
        Expense      // 支出
    }
}